package com.example.config;

/**
 * @author yinxin
 * @version 1.0
 * @Description:
 * @date 2022/6/1710:33
 */
public class WechatPayApi {

    /**
     * 微信支付主机地址
     */
   public static final String HOST = "https://api.mch.weixin.qq.com";
    /**
     * Native下单地址
     */
    public static final String NATIVE_ORDER = HOST + "/v3/pay/transactions/native";
    /**
     * 查询订单
     * param1 根据商户内部订单号out_trade_no/微信支付系统生成的订单号transaction_id
     * param2 直连商户的商户号
     */
    public static final String NATIVE_QUERY = HOST + "/v3/pay/transactions/out-trade-no/%s?mchid=%s";
    /**
     * 关闭订单接口
     */
    public static final String NATIVE_CLOSE_ORDER = HOST+ "/v3/pay/transactions/out-trade-no/%s/close";
    /**
     * 申请退款接口
     */
    public static final String NATIVE_REFUND_ORDER = HOST+ "/v3/refund/domestic/refunds";
    /**
     * 退款状态查询接口
     */
    public static final String NATIVE_REFUND_QUERY = HOST+ "/v3/refund/domestic/refunds/%s";
}
